﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using InsuranceCompany.Core.Domain.InsuranceArea;

namespace InsuranceCompany.Core.Domain.InsuranceObjects
{
    public class Document:InsuranceEntity
    {
        public Client.Client Client { get; set; }
        public string InsObject { get; set; }
        public DateTime CreateDate { get; set; }
        public Employee CompanyEmployee { get; set; }

        public Document() :base()
        {
            Client = null;
            InsObject = "";
            CreateDate = DateTime.Today;
            CompanyEmployee = null;
        }

        public Document(Document doc) :base(doc)
        {
            Client = new Client.Client(doc.Client);
            InsObject = doc.InsObject;
            CreateDate = doc.CreateDate;
            CompanyEmployee = doc.CompanyEmployee;
        }

        public Document(Client.Client client, String insObject, DateTime createDate, Employee employee)
        {
            Client = new Client.Client(client);
            InsObject = insObject;
            CreateDate = createDate;
            CompanyEmployee = new Employee(employee);
        }
    }
}
